/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.applis.tutorial.forms;

import java.io.Serializable;

import org.apache.struts.action.ActionForm;

import opiam.admin.applis.tutorial.beans.Person;

/**
 * This class describes the person formBean.
 *
 * It defines the both setter and getter methods for all the available fields
 * of the visualization and modification forms (person.jsp and
 * modify_person.jsp respectively).
 *
 */
public class PersonForm extends ActionForm implements Serializable
{
    /** User object. */
    private Person user = new Person();

    /**
     * Gets the user.
     *
     * @return The user.
     */
    public Person getUser()
    {
        return user;
    }

    /**
     * Sets the user.
     *
     * @param auser  The user to set.
     */
    public void setUser(Person auser)
    {
        this.user = auser;
    }
    /**
     * Reset all the value of the object.
     */
    public void reset()
    {
        user = null;
    }
}
